package com.laojiang.service.impl;

import com.laojiang.mapper.ScoreMapper;
import com.laojiang.pojo.Score;
import com.laojiang.service.ScoreDaoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;



@Service
public class ScoreDaoServiceImpl implements ScoreDaoService {

	@Autowired
	private ScoreMapper scoreDao ;

	// 课程取消
	public int courseCancel(String student_sno, String course_cno) {
		return scoreDao.courseCancel(student_sno, course_cno);
	}

	// 查询课程是否已选
	public List<Score> scoresSel(String student_sno, String course_cno) {
		return scoreDao.scoresSel(student_sno, course_cno);
	}

	// 课程选择
	public int courseChange(String student_sno, String course_cno, String teacher_tno) {
		return scoreDao.courseChange(student_sno, course_cno, teacher_tno);
	}

	// 课程成绩录入
	public int scoresInput(String student_sno, String course_cno, int score) {
		return scoreDao.scoresInput(student_sno, course_cno, score);
	}

}
